using System;
using System.Web.UI;
using Portal.Core;
using Portal.Core.ActionFlow;

public partial class Admin_ : ActionPage
{
    public string StaticPath;
    protected override Control Root
    {
        get { return ContentHolder; }
    }

    protected override void OnInit(EventArgs e)
    {
        form.Action = Request.RawUrl;   //keeping rewrite url after postback
        StaticPath = CoreContext.absStaticFile;
        var page = Request[PAGE] ?? "home";
        Portal.Data.Entity.Page fp = Portal.Data.Entity.Page.FindByName(page);
        PageConfig config = PageConfig.FromString(fp.Content);
        BuildPage(config);
    }
}